import config from "@/config"
import http from "@/utils/request"
export default {
    getProduce: {
        lists:{
            url: `${config.API_URL}/adminapi/produce.shopProduce/lists`,
            name: "获取生产订单列表",
            get: async function(params){
				return await http.get(this.url, params);
			}
        },
        add: {
			url: `${config.API_URL}/adminapi/produce.shopProduce/add`,
			name: "生产单新增",
			post: async function(data={}){
				return await http.post(this.url, data);
			}
		},
        edit: {
			url: `${config.API_URL}/adminapi/produce.shopProduce/edit`,
			name: "编辑",
			post: async function(data={}){
				return await http.post(this.url, data);
			}
		},
        perfect: {
			url: `${config.API_URL}/adminapi/produce.shopProduce/perfect`,
			name: "完善生产单",
			post: async function(data={}){
				return await http.post(this.url, data);
			}
		},
        detail: {
			url: `${config.API_URL}/adminapi/produce.shopProduce/detail`,
			name: "生产单详情",
			get: async function(data={}){
				return await http.get(this.url, data);
			}
		},
        delete: {
			url: `${config.API_URL}/adminapi/produce.shopProduce/delete`,
			name: "删除",
			post: async function(data={}){
				return await http.post(this.url, data);
			}
		},
        forcedelete: {
			url: `${config.API_URL}/adminapi/produce.shopProduce/forceDelete`,
			name: "强制删除",
			post: async function(data={}){
				return await http.post(this.url, data);
			}
		},
	},
    contract:{
        getSupplierList: {
			url: `${config.API_URL}/adminapi/produce.shopProduce/getSupplierList`,
			name: "通过生产工序查询承制人",
			get: async function(data={}){
				return await http.get(this.url, data);
			}
		},
        viewContract: {
			url: `${config.API_URL}/adminapi/produce.produceContract/lists`,
			name: "织机委外合同列表",
			get: async function(data={}){
				return await http.get(this.url, data);
			}
		},
        loomScanOrderDetail: {
			url: `${config.API_URL}/adminapi/produce.shopProduce/loomScanOrderDetail`,
			name: "织机扫码查询商品数量信息",
			get: async function(data={}){
				return await http.get(this.url, data);
			}
		},
        createContract: {
			url: `${config.API_URL}/adminapi/produce.shopProduce/createContract`,
			name: "创建委外合同",
			post: async function(data={}){
				return await http.post(this.url, data);
			}
		},
        loomScanTakeDelivery: {
			url: `${config.API_URL}/adminapi/produce.shopProduce/loomScanTakeDelivery`,
			name: "织机扫码收货",
			post: async function(data={}){
				return await http.post(this.url, data);
			}
		},
        repair: {
			url: `${config.API_URL}/adminapi/produce.shopProduce/loomBarcodePrintComplement`,
			name: "织机补打条码",
			post: async function(data={}){
				return await http.post(this.url, data);
			}
		},
        repairMater:{
            url: `${config.API_URL}/adminapi/produce.produceContract/repairMaterial`,
			name: "补毛",
			post: async function(data={}){
				return await http.post(this.url, data);
			}
        },
        returnMater:{
            url: `${config.API_URL}/adminapi/produce.produceContract/returnMaterial`,
			name: "退毛",
			post: async function(data={}){
				return await http.post(this.url, data);
			}
        },
    },
    send:{
        lists: {
			url: `${config.API_URL}/adminapi/produce.produceTakeDelivery/lists`,
			name: "织机收货明细",
			get: async function(data={}){
				return await http.get(this.url, data);
			}
		},
        detailLists: {
			url: `${config.API_URL}/adminapi/produce.produceTakeDelivery/loomTakeDeliveryScanDetail`,
			name: "织机收货明细",
			get: async function(data={}){
				return await http.get(this.url, data);
			}
		},
        contractLists: {
			url: `${config.API_URL}/adminapi/produce.produceTakeDelivery/contractLists`,
			name: "订单收货明细",
			get: async function(data={}){
				return await http.get(this.url, data);
			}
		},
        markCompleted: {
			url: `${config.API_URL}/adminapi/produce.produceTakeDelivery/markCompleted`,
			name: "标为完工",
			post: async function(data={}){
				return await http.post(this.url, data);
			}
		},
        unCompleted: {
			url: `${config.API_URL}/adminapi/produce.produceTakeDelivery/cancelCompleted`,
			name: "取消完工",
			post: async function(data={}){
				return await http.post(this.url, data);
			}
		},
        deductionPayment: {
			url: `${config.API_URL}/adminapi/produce.produceTakeDelivery/deductionPayment`,
			name: "补扣款",
			post: async function(data={}){
				return await http.post(this.url, data);
			}
		},
        putHouse: {
			url: `${config.API_URL}/adminapi/produce.produceTakeDelivery/putInWarehousing`,
			name: "入库",
			post: async function(data={}){
				return await http.post(this.url, data);
			}
		},
    },
    waitSettled:{
        lists: {
			url: `${config.API_URL}/adminapi/produce.produceContractStatement/lists`,
			name: "待结算列表",
			get: async function(data={}){
				return await http.get(this.url, data);
			}
		},
        statementLists: {
			url: `${config.API_URL}/adminapi/produce.produceContractStatement/statementLists`,
			name: "织机结算单管理",
			get: async function(data={}){
				return await http.get(this.url, data);
			}
		},
        createStatementOrder: {
			url: `${config.API_URL}/adminapi/produce.produceContractStatement/createStatementOrder`,
			name: "生成结算单",
			post: async function(data={}){
				return await http.post(this.url, data);
			}
		},
        detail: {
			url: `${config.API_URL}/adminapi/produce.produceContractStatement/detail`,
			name: "结算单详情",
			get: async function(data={}){
				return await http.get(this.url, data);
			}
		},
        perfectStatement: {
			url: `${config.API_URL}/adminapi/produce.produceContractStatement/perfectStatement`,
			name: "完善结算单",
			post: async function(data={}){
				return await http.post(this.url, data);
			}
		},
        getProcessOfSubProcess: {
			url: `${config.API_URL}/adminapi/produce.shopProduce/getProcessOfSubProcess`,
			name: "生产单织机下的二级工序",
			get: async function(data={}){
				return await http.get(this.url, data);
			}
		},
        selExport: {
			url: `${config.API_URL}/adminapi/produce.produceContractStatement/export`,
			name: "结算单导出",
			get: async function(data={}){
				return await http.get(this.url, data);
			}
		},
    },
    picking:{
        lists: {
			url: `${config.API_URL}/adminapi/produce.produceReceiveOrder/lists`,
			name: "领料管理列表",
			get: async function(data={}){
				return await http.get(this.url, data);
			}
		},
    },
    setConfirm:{
        lists: {
			url: `${config.API_URL}/adminapi/produce.produceContractStatement/statementLists`,
			name: "织机结算待确认列表",
			get: async function(data={}){
				return await http.get(this.url, data);
			}
		},
        statementConfirm: {
			url: `${config.API_URL}/adminapi/produce.produceContractStatement/statementConfirm`,
			name: "结算单确认",
			post: async function(data={}){
				return await http.post(this.url, data);
			}
		},
        payment: {
			url: `${config.API_URL}/adminapi/produce.produceContractStatement/payment`,
			name: "结算单付款",
			post: async function(data={}){
				return await http.post(this.url, data);
			}
		},
    },
    proAll: {
        url: `${config.API_URL}/adminapi/produce.produceContract/all`,
        name: "扫码收货查询的合同列表",
        get: async function(data={}){
            return await http.get(this.url, data);
        }
    },
    proDetail: {
        url: `${config.API_URL}/adminapi/produce.produceContract/detail`,
        name: "合同详情",
        get: async function(data={}){
            return await http.get(this.url, data);
        }
    },
    processRecord: {
        url: `${config.API_URL}/adminapi/produce.workshopManage/goodsProcessPriceList`,
        name: "工序价格记录列表",
        get: async function(data={}){
            return await http.get(this.url, data);
        }
    },
    updatePrice: {
        url: `${config.API_URL}/adminapi/produce.workshopManage/updateGoodsProcessPrice`,
        name: "更新商品工序价格",
        post: async function(data={}){
            return await http.post(this.url, data);
        }
    },
    receiveOrder: {
        url: `${config.API_URL}/adminapi/produce.produceReceiveOrder/lists`,
        name: "领毛列表",
        get: async function(data={}){
            return await http.get(this.url, data);
        }
    },
    waitList:{
        list: {
            url: `${config.API_URL}/adminapi/produce.produceReceiveOrder/giveLists`,
            name: "待发毛列表",
            get: async function(data={}){
                return await http.get(this.url, data);
            }
        },
        send: {
            url: `${config.API_URL}/adminapi/produce.produceReceiveOrder/giveOutMaterial`,
            name: "发毛",
            post: async function(data={}){
                return await http.post(this.url, data);
            }
        },
    },
    // 缝挑收货录入
    sewInput: {
        url: `${config.API_URL}/adminapi/produce.produceContract/sewingPickingTakeOver`,
        name: "缝挑收货录入",
        post: async function(data={}){
            return await http.post(this.url, data);
        }
    },
    // 车间管理
    workshop:{
        // 工序价格-计算工资
        calcWages:{
            url: `${config.API_URL}/adminapi/produce.workshopManage/computeProcessPrice`,
            name: "计算工资",
            post: async function(data={}){
                return await http.post(this.url, data);
            }
        },
        record:{
            url: `${config.API_URL}/adminapi/produce.workshopManage/goodsProcessPriceList`,
            name: "价格记录列表",
            get: async function(data={}){
                return await http.get(this.url, data);
            }
        },
        // 扫码记录
        scanRecord: {
            list: {
                url: `${config.API_URL}/adminapi/produce.workshopManage/scanReportList`,
                name: "扫码记录列表",
                get: async function(data={}){
                    return await http.get(this.url, data);
                }
            },
            auditReport:{
                url: `${config.API_URL}/adminapi/produce.workshopManage/auditReport`,
                name: "审核",
                post: async function(data={}){
                    return await http.post(this.url, data);
                }
            },
            delete:{
                url: `${config.API_URL}/adminapi/produce.workshopManage/deleteScanLog`,
                name: "删除",
                post: async function(data={}){
                    return await http.post(this.url, data);
                }
            }
        },
        // 手动录入
        enterReport:{
            url: `${config.API_URL}/adminapi/produce.workshopManage/enterReport`,
            name: "手动收货录入",
            post: async function(data={}){
                return await http.post(this.url, data);
            }
        },
        inputList: {
            url: `${config.API_URL}/adminapi/produce.workshopManage/workshopReceivingList`,
            name: "车间收货录入列表",
            get: async function(data={}){
                return await http.get(this.url, data);
            }
        },
        inputOutList: {
            url: `${config.API_URL}/adminapi/produce.workshopManage/workshopReceivingOutsourcingList`,
            name: "委外车间收货录入列表",
            get: async function(data={}){
                return await http.get(this.url, data);
            }
        },
        staffProcess: {
            url: `${config.API_URL}/adminapi/produce.workshopManage/getProduceProcessStaff`,
            name: "生产单工序及岗位员工",
            get: async function(data={}){
                return await http.get(this.url, data);
            }
        },
    },
    contractCorrela:{
        contractList: {
            url: `${config.API_URL}/adminapi/produce.produceContract/getContractClause`,
            name: "获取合同条款",
            get: async function(data={}){
                return await http.get(this.url, data);
            }
        },
        contractAdd: {
            url: `${config.API_URL}/adminapi/produce.produceContract/contractClauseSave`,
            name: "合同条款保存",
            post: async function(data={}){
                return await http.post(this.url, data);
            }
        },
    },
    // 生产报表
    orderSchedule:{
        url: `${config.API_URL}/adminapi/produce.shopProduce/orderSchedule`,
        name: "生产报表",
        get: async function(data={}){
            return await http.get(this.url, data);
        }
    },
    void: {
        url: `${config.API_URL}/adminapi/produce.produceContract/contractCancel`,
        name: "作废",
        post: async function(data={}){
            return await http.post(this.url, data);
        }
    },
    editContractPrice: {
        url: `${config.API_URL}/adminapi/produce.produceContract/editContractPrice`,
        name: "编辑价格",
        post: async function(data={}){
            return await http.post(this.url, data);
        }
    },
    // 织机报表
    schedule: {
        url: `${config.API_URL}/adminapi/produce.produceContract/loomSchedule`,
        name: "织机报表",
        get: async function(data={}){
            return await http.get(this.url, data);
        }
    },
}